Unlocked JavaScript Examples
Chapter 1. Diving into JavaScript core
Make your code readable and expressive
Example 01
Example 02
Example 03
Example 04
Example 05
Example 06
Example 07
Example 08
Example 09
Example 10
Example 11
Example 12
Mastering multi-line strings in JavaScript
Example 01
Example 02
Example 03
Example 04
Example 05
Manipulating arrays ES5 way
Example 01
Example 02
Example 03
Example 04
Example 05
Example 06
Example 07
Example 08
Example 09
Traversing an object: elegant, reliable, safe and fast
Example 01
Example 02
Example 03
Example 04
Example 05
Example 06
Example 07
Example 08
Example 09
Most effective way of declaring objects
Example 01
Example 02
Example 03
Example 04
Example 05
Example 06
Example 07
Example 08
Example 09
Example 10
How to: magic methods in JavaScript
Example 01
Example 02
Example 03
Example 04
Example 05
Example 06
Chapter 2. Modular programming with JavaScript
How to get out of a mess: modular JavaScript
Example 01
Example 02
Example 03
Example 04
Example 05
How to: asynchronous modules in the browser
Example 01
Example 02
Example 03
Example 04
How to: synchronous modules on the server
Example 05
Example 06
Example 07
Example 08
Example 09
Example 10
Coming soon: JavaScript built-in module system
Example 11
Example 12
Example 13
Example 14
Traspiling CommonJS for in-browser use
Example 15
Example 16
Example 17
Example 18
Example 19
Bundling ES6 modules for synchronous loading by now
Example 20
Chapter 3. DOM Scripting and AJAX
High-speed DOM operations
Example 01
Example 02
Example 03
Example 04
Example 05
Example 06
Example 07
Example 08
Example 09
Example 10
Example 11
Example 12
Example 13
Example 14
Example 15
Example 16
Example 17
Example 18
Example 19
Example 20
Example 21
Example 22
Example 23
Example 24
Example 25
Example 26
Example 27
Example 28
Example 29
Communication with the server
Example 01
Example 04
Example 07
Example 08
Example 09
Example 10
Example 11
Chapter 4. HTML5 APIs
Storing data in web-browser
Example 01
Example 02
Example 03
Example 04
Example 05
Example 06
Example 07
Boosting performance with JavaScript Workers
Example 01
Example 02
Example 03
Creating our first web component
Example 01
Learning to use server-to-browser communication channels
Example 01
Example 02
Example 03
Chapter 5. Asynchronous JavaScript
Non-blocking JavaScript
Example 01
Example 02
Example 03
Example 04
Example 05
Example 06
Example 07
Error First Callback
Example 01
Continuation-passing style
Example 01
Example 02
Example 03
Example 04
Asynchronous functions ES7 way
Example 01
Parallel tasks and task serious with Async.js library
Example 01
Example 02
Event Handling Optimization
Example 01
Example 02
Chapter 6. Large-Scale JavaScript Application Architecture
Design patterns in JavaScript
Example 01
Example 02
Using JavaScript MV* Frameworks
Example Backbone
Example Angular
Example React
Chapter 7. JavaScript Beyond the Browser
Getting the best from console API
Example 01
Example 02
Example 03
Example 04
Building a web-server with JavaScript
Example 01
Example 02
Writing a desktop HTML5 application now easier!
Example 01
Example 02
Example 03
Example 04
Chapter 8. Debugging and profiling
Getting the best from console API
Example 01
Example 02
Example 03
Example 04
Please, choose an example in the left-hand menu
Run
Your browser may not yet support ES6, try this code in Babel